# """iotserv URL Configuration

# The `urlpatterns` list routes URLs to views. For more information please see:
#     https://docs.djangoproject.com/en/2.1/topics/http/urls/
# Examples:
# Function views
#     1. Add an import:  from my_app import views
#     2. Add a URL to urlpatterns:  path('', views.home, name='home')
# Class-based views
#     1. Add an import:  from other_app.views import Home
#     2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
# Including another URLconf
#     1. Import the include() function: from django.urls import include, path
#     2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
# """
from django.contrib import admin
from django.urls import path
from django.conf.urls import include,url
from . import views
app_name='tracker_app'


urlpatterns = [
    path(r'',views.logins,name='logins'),

    path(r'index/',views.index,name='index'),

    path(r'dynamic/',views.dynamic,name='dynamic'),

    path(r'device/',views.device,name='device'),

    path(r'trail/',views.trail,name='trail'),

    path(r'efence/',views.efence,name='efence'),

    path(r'trackmap_inroom/',views.trackmap_inroom,name='trackmap_inroom'),

    path(r'building/',views.building,name='building'),

    path(r'scanner/',views.scanner,name='scanner'),

    path(r'mileage_reports/',views.mileage_reports,name='mileage_reports'),

    path(r'alarm_reports/',views.alarm_reports,name='alarm_reports'),

    path(r'health_reports/',views.health_reports,name='health_reports'),

    path(r'user_manage/',views.user_manage,name='user_manage'),

    path(r'interact/',views.interact,name='interact'),

    path(r'map_manage/',views.map_manage,name='map_manage'),

    path(r'overlay_to_map/',views.overlay_to_map,name='overlay_to_map'),

    path(r'realtime_attendance/',views.realtime_attendance,name='realtime_attendance'),

    path(r'other_efence_set/',views.other_efence_set,name='other_efence'),

    path(r'sys_log_web/',views.sys_log_web,name='sys_log_web'),

    path(r'pc_register/',views.pc_register,name='pc_register'),
    path(r'forgot_pwd/',views.forgot_pwd,name='forgot_pwd'),

    # 手机端api，第三方api
    path(r'logins/', views.LoginView.as_view()),  # 登录
    path(r'baseinfo/', views.BaseInfo.as_view()),  # 获取高频使用基本信息
    path(r'chat_api/', views.ChatAPIView.as_view()),# 微聊api，下一步完善websocket，与设备实时交互功能
    path(r'register/',views.RegisteredView.as_view()), # 注册，绑定设备retrieve_password
    path(r'retrieve_password/',views.Retrieve_passwordView.as_view()),# 重置密码
    path(r'command/',views.CommandView.as_view()),# 命令处理

]
